package aaaDbManager;

import org.eclipse.swt.browser.ProgressEvent;
import org.eclipse.swt.browser.ProgressListener;

import com.attilax.io.filex;
import com.attilax.io.pathx;
import com.attilax.ui.HTML5Form;
import com.attilax.ui.SwtX;

public class dbGui {

	public static void main(String[] args) {
		pathx.isWebPathMode=true;
		//&orderbyDescIni=user_id
 	String h=pathx.classPathParent_jensyegeor()+"/dbmanag/list.html?db=information_schema&table=columns&dbg=0";
 		HTML5Form fm=new HTML5Form(h);
 		fm.setSize(960, 550);
 	fm.show();
		
		
	//	t();
	   		//fm.atiBrowserExampleinstance.browser.evaluate("window.print();");
		new SwtX().threadRecycle4swimg();

	}

	private static void t() {
		String h=pathx.classPathParent_jensyegeor()+"/dbmanag/schema_list.html?table=ecs_users&dbg=1";
		h=pathx.classPathParent_jensyegeor()+"/dbmanag/tab_list.html?schema=atiposdb";
		
	   		final HTML5Form fm=new HTML5Form(h);
	   		fm.setSize(960, 550);
	   		fm.show();   
	   		 
	   		
	   		ProgressListener 		prgrsLsnr=new ProgressListener() {
				//
				/**
				 * attilax
				 */
				public void completed(ProgressEvent event) {
					 
					fm.atiBrowserExampleinstance.browser.evaluate("window.print();");
					System.out.println("---page load  completed event finish");
				//	System.out.println(browser.getText());
					// canvas.redraw();
				}

				@Override
				public void changed(ProgressEvent arg0) {
					// TODO Auto-generated method stub
					
				}

				 
			};
			fm.atiBrowserExampleinstance.browser.addProgressListener(prgrsLsnr);
	}

}
